package com.hongyi.system.domain.dto;



import com.hongyi.common.framework.validate.AddGroup;
import com.hongyi.common.framework.validate.EditGroup;
import com.hongyi.common.mybatis.domain.BaseEntity;
import com.hongyi.system.domain.SysPost;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 岗位信息表
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysPost.class)
public class SysPostDto extends BaseEntity {

    /**
     * 岗位ID
     */
    private Long postId;

    /**
     * 岗位编码
     */
    @NotBlank(message = "岗位编码不能为空",groups = {AddGroup.class, EditGroup.class})
    private String postCode;

    /**
     * 岗位名称
     */
    @NotBlank(message = "岗位名称不能为空",groups = {AddGroup.class, EditGroup.class})
    private String postName;

    /**
     * 显示顺序
     */
    @NotNull(message = "岗位名称不能为空",groups = {AddGroup.class, EditGroup.class})
    private Integer postSort;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 备注
     */
    private String remark;
}